#ifndef SENDERUI_H
#define SENDERUI_H

#include <QDialog>
#include <QThread>
#include <QTimer>

class AsyncSubscribe;
class ReceiverThread;

namespace Ui {
class ReceiverUI;
}

class ReceiverUI : public QDialog
{
    Q_OBJECT
    
public:
    explicit ReceiverUI(QWidget *parent = 0);
    ~ReceiverUI();
    
private slots:
    void on_pbStart_clicked();
    void slotTimeOut();
    void on_pbStop_clicked();
    void onMesageReceived(QByteArray topic, QByteArray message);

private:
    Ui::ReceiverUI *ui;
    QTimer *m_timer;
    AsyncSubscribe* m_pSubscrubeCli;
    ReceiverThread* m_pThread;

    void updateTableDatas();
    void sendDatas();

};

#endif // SENDERUI_H
